package com.ctgu.rabbitmq.rabbitmq.lazyQueue;

import lombok.extern.log4j.Log4j2;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ ClassName LazyQueueConsumer
 * @ Author Alex2
 * @ Date 2025/9/1 11:35
 **/
@Log4j2
@Component
public class LazyQueueConsumer {

    private static final String TAG = "Alex";

    @RabbitListener(queues = LazyQueueConfig.LAZY_QUEUE)
    public void receive(String message) {
        log.info("{} : 收到惰性队列消息: {}", TAG, message);
    }
}